<?php
$title = $model->isNewRecord ? '创建' : '更新';
$this->breadcrumbs = array(
    '授权管理' => array('/admin/auth'),
    $title,
);
?>
<div class="row">
    <blockquote><b><?php echo $title; ?></b></blockquote>
    <div class="col-md-8 col-md-offset-2">
        <?php
        $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
            'id' => 'CreateForm',
            'type' => 'horizontal',
            'enableAjaxValidation' => false,
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
        echo $form->textFieldRow($model, 'name');
        echo $form->dropDownListRow($model, 'type',Auth::getOptions('type'));
        echo $form->textFieldRow($model, 'class');
        echo $form->textFieldRow($model, 'method');
        echo $form->textAreaRow($model, 'remark', array('rows' => 8));
        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => '保存',
            'htmlOptions' => array('class' => 'submit', 'style' => 'width:120px;margin:15px 250px;'),
        ));
        $this->endWidget();
        ?>
    </div>
</div>
